﻿@{
    ViewBag.Title = "CreateGame blabla";
}
@model bordspil.Models.Game

<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="jquery.js"></script>

    <div class="main-menu">
        <h2 id="h2-game">@Model.GameName</h2>
        <button id="create-game-button">Búa til leik</button>
        <!--her kemur Jquery fyrir button-->

    <script>
        $(document).ready(function () {

            $("#create-game-button").click(function () {
                window.open('/Home/@Model.ViewName/@Model.TableID', '@Model.GameName', 'window settings');
                });
            });
    </script>
    
    <div class="main-content">

        <form method="post" action="/Home/CreateGame/@Model.ID">
            <div class="bord-id">@Model.TableID</div>
                @for (int i = 0; i < Model.MaxPlayers; i++)
                {
                    <div class="user-id">userID hidden</div>
                    <div class="user-username">UserName |</div>
                }
        </form>

    </div>
        
    </div>

    <div class="board">
        <h3 id="h3-game">Stiga Tafla</h3>
        <div class="score-board">
        

        </div>
    </div>


